﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
namespace DTO
{
    public class TUKHOAPHUONGCollection : List<TUKHOAPHUONG>
    { }
    public class TUKHOAPHUONG
    {
        private PHUONGCollection dsPHUONG;

        internal PHUONGCollection DsPHUONG
        {
            get { return dsPHUONG; }
            set { dsPHUONG = value; }
        }

        private long MaTuKhoaPhuong;

        public long MATUKHOAPHUONG
        {
            get { return MaTuKhoaPhuong; }
            set { MaTuKhoaPhuong = value; }
        }
        private String TuKhoaPhuong;
        [StringLengthValidator(1,500,MessageTemplate="Từ khóa phường phải có ít nhất 1 ký tự")]
        public String TKPHUONG
        {
            get { return TuKhoaPhuong; }
            set { TuKhoaPhuong = value; }
        }
        private long MaPhuong;

        public long MAPHUONG
        {
            get { return MaPhuong; }
            set { MaPhuong = value; }
        }
        public TUKHOAPHUONG() { dsPHUONG = new PHUONGCollection(); }
    }
}
